package br.com.cefetrn.apoena.dominio.entity;

import java.util.List;

import org.hibernate.Session;

import br.com.cefetrn.apoena.dominio.home.Home4AreasAtuacaoPublicoAlvo;
import br.com.cefetrn.apoena.dominio.home.Home4AreasDeAtuacao;
import br.com.cefetrn.apoena.dominio.home.Home4Pessoa;
import br.com.cefetrn.apoena.dominio.home.Home4Profissional;
import br.com.cefetrn.apoena.util.HibernateUtil;

public class TEste {
	static List <Profissional> profissionais;
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Session session = HibernateUtil.currentSession();
		Home4Profissional hp = new Home4Profissional();
		
		 profissionais = hp.findAll(); 
		
		
		//System.out.println(session.createQuery("from Profissional").list().size());
		
		/*Home4AreasDeAtuacao h = new Home4AreasDeAtuacao();
		h.setSession(session);
		
		System.out.println(h.findAll().size());
		
		for(AreasDeAtuacao aa : h.findAll()){
			System.out.println(">>>>>>>>>>>>"+aa.getNome());
			for(AreasAtuacaoPublicoAlvo aapa : aa.getAreasAtuacaoPublicoAlvos())
				System.out.println(aapa.getPublicoAlvo().getNome());
		}
		
		
		Profissional profissional = new Profissional();
		
		Endereco end = new Endereco();
	
		profissional.setNome("fuderoso!");
		profissional.setCadastro("chupa!");
		profissional.setEmail("que");
		profissional.setSite("de");
		profissional.setTelefone("uv");
		Login login = new Login();
		login.setId(1);
		login.setGestor(true);
		login.setLogin("fdp");
		login.setSenha("rapariga");
		profissional.setLogin(login);
		profissional.setCurriculum("TERMINOU CARALHO");
		
		home.persist(profissional);
		*/
	
	}

}
